home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / ToomyTooth.swf / scripts / frame_37 / PlaceObject2_84_14 / CLIPACTIONRECORD onClipEvent(mouseDown).as < prev   
Encoding:
Text File  |  2005-08-05  |  793 b   |  33 lines

  1. onClipEvent(mouseDown){
  2.    laserCounter++;
  3.    _root.laser.duplicateMovieClip("laser" + laserCounter,laserCounter);
  4.    if(this._currentframe == 1)
  5.    {
  6.       _root["laser" + laserCounter]._visible = true;
  7.       tellTarget(_root["laser" + laserCounter])
  8.       {
  9.          gotoAndStop("Right");
  10.          play();
  11.          tellTarget(this.T_hoover)
  12.          {
  13.             gotoAndStop("KickBack");
  14.             play();
  15.          }
  16.       }
  17.    }
  18.    else if(this._currentframe == 2)
  19.    {
  20.       _root["laser" + laserCounter]._visible = true;
  21.       tellTarget(_root["laser" + laserCounter])
  22.       {
  23.          gotoAndStop("Left");
  24.          play();
  25.          tellTarget(this.T_hoover)
  26.          {
  27.             gotoAndStop("KickBack");
  28.             play();
  29.          }
  30.       }
  31.    }
  32. }
  33.